package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.dao.DTO.MovieDTO;
import com.example.demo.dao.entity.Blog;
import com.example.demo.dao.entity.Comment;
import com.example.demo.dao.mapper.BlogMapper;
import com.example.demo.dao.mapper.CommentMapper;
import com.example.demo.service.BlogService;
import com.example.demo.service.CommentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {
    @Autowired
    private CommentMapper commentMapper;

    @Override
    public List<MovieDTO> selectAll() {
        return commentMapper.selectAll();
    }
}
